package org.alan7yg.aop_sample;

import lombok.ToString;

/**
 * Base runtime exception.
 * Created by alan on 8/19/16.
 */
@ToString
public class ServiceException extends RuntimeException {
    /**
     * error status code
     */
    public final RespCode errCode;

    public ServiceException(RespCode respCode) {
        super();
        this.errCode = respCode;
    }

    public ServiceException(RespCode respCode, Throwable t) {
        super(t);
        this.errCode = respCode;
    }

}
